#include "CRectangle.h"
#include <conio.h>

int main ()
{
	CRectangle recta;
	recta.setValues (3,4);
	CRectangle *rectb;
	rectb=&recta;
	rectb->setValues (3,4);
	cout<<"area a:"<< recta.area();
	cout<<"\narea b:"<<rectb->area ();
	CRectangle *rectc = new CRectangle();
	rectc->setValues (5,6);
	rectb = rectc;
	rectc->setValues (7,8);
	cout <<"\narea a:"<<rectb->area();
	cout<<"\narea b:"<<rectc->area();
	_getch();
	return 0;
}